package com.licq.ldoc.support.bean;

public abstract class AbstractKeyValue<K, V> implements KeyValue<K, V> {
	protected K key;
	
	protected V value;

	protected AbstractKeyValue(K key, V value) {
		this.key = key;
		this.value = value;
	}

	@Override
	public K getKey() {
		return key;
	}

	@Override
	public V getValue() {
		return value;
	}
	
	@Override
	public String toString() {
		return new StringBuffer()
			.append(getKey())
			.append("=")
			.append(getValue())
			.toString();
	}

}
